import Vue from 'vue'
import Router from 'vue-router'
import List from '@/components/List.vue'
import Window from '@/demo/Window.vue'
import Table from '@/demo/Table.vue'
import Tab from '@/demo/Tab.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'List',
      component: List,
      children: [
        {
          path: '/table',
          name: 'Table',
          component: Table
        },
        {
          path: '/window',
          name: 'Window',
          component: Window
        },
        {
          path: '/tab',
          name: 'Tab',
          component: Tab
        },
        {
          path: '/table',
          name: 'Table',
          component: Table
        }
      ]
    }
  ]
})
